<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of App_Admin_Controller_Menu
 *
 * @author Zelic
 */
class App_Admin_Controller_Menu extends Lib_Controller {
    function index(){
        $this->data['menu']=$this->model->select('all');
    }
    
    function insert($data){
        if ($data!=null){
            $this->model->insert($data);
            $this->redirect('admin/menu/index');
        }
    }
}

?>
